package com.woniu.service;

import com.woniu.been.entity.Teachers;
import com.woniu.utils.PageResult;

import java.util.List;

public interface TeachersService {
    Teachers login(String teacherName, String password);

    PageResult findAllTeacher(Teachers teachers, Integer pageNum, Integer pageSize);

    List<Teachers> findTeacherByNameAndTelephone(String teacherName, String telephone);

    void register(Teachers teachers);

    void deleteTeacher(Integer teacherId);

    void updateTeacher(Teachers teachers);

    String findTeacherRoleByTeacherName(String teacherName);

    String findTeacherRoleByTelephone(String telephone);

    void addAdmin(Teachers teachers);

    Teachers findTeacherByName(String teacherName);

    List<Teachers> findTeacherNotContainItself(String teacherName, String telephone, Integer teacherId);

    String findTeacherNameByTelephone(String telephone);

    void updateByUsername(String imagePath, String teacherName);

    Integer findRoleByTeacherId(Integer teacherId);

    Teachers findTeacherById(Integer teacherId);

    void updateTeacherRole(String teacherName, Integer role);
}
